package com.ywk.spring.business.controller;

import com.ywk.spring.business.entity.User;
import com.ywk.spring.business.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author zbh
 * @Date 2023/6/30
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    UserService service;

    @RequestMapping("/findAll")
    public List<User> findAll(){
        return service.findAll();
    }
}
